//
//  SYS_MessageHomeCell.m
//  System_App
//
//  Created by czy001 on 2017/12/4.
//  Copyright © 2017年 czy001. All rights reserved.
//

#import "SYS_MessageHomeCell.h"

@implementation SYS_MessageHomeCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
    _photoImg.layer.cornerRadius=25;
    _photoImg.layer.masksToBounds=YES;
    
}

- (void)setModel:(SYS_MemberModel *)model
{
    [_photoImg sd_setImageWithURL:[NSURL URLWithString:model.userLogo] placeholderImage:[UIImage imageNamed:@"message_own_default"]];
    _nameLbl.text=model.nickName;
    _contentLbl.text=model.phone;
    if ([JSON(model.storeName) length]>0) {
        _timeLbl.text=[NSString stringWithFormat:@"绑定门店:%@",model.storeName];
        _timeLbl.hidden=NO;
    }
    else
    {
        _timeLbl.hidden=YES;
    }
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
